package com.xc.freeapp.dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xc.freeapp.entity.Collectdoctor;

@Repository
public interface CollectdoctorDao {
    int deleteByPrimaryKey(Integer cid);
    
    int deleteByDoctorId(Integer doctorid,Integer userid);

    int insert(Collectdoctor record);

    int insertSelective(Collectdoctor record);

    Collectdoctor selectByPrimaryKey(Integer cid);
    
    List<Collectdoctor> selectByUserId(Integer uid);
    
    Collectdoctor selectByUseridAndDoctorid(Integer uid,Integer doctorid);
    
    int updateByPrimaryKeySelective(Collectdoctor record);

    int updateByPrimaryKey(Collectdoctor record);
    
    int addconllect(String doctorid);
    
    int reduceconllect(String doctorid);
    
}